﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class AcademicPersonCVConfiguration : EntityConfiguration<AcademicPersonCV>
    {
        public AcademicPersonCVConfiguration()
        {
            Property(p => p.AcademicPersonCVID).IsIdentity();
            MapHierarchy(
                p => new
                {
                    p.AcademicPersonCVID,
                    p.AcademicPersonID,
                    p.CVDescription,
                }
                ).ToTable("AcademicPersonCV");
        }
    }
}
